﻿using AiXiu.Model.Redis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiXiu.IBLL
{
    public interface IDiscussManager
    {
        /// <summary>
        /// 添加评论
        /// </summary>
        /// <param name="videoId"></param>
        /// <param name="discuss"></param>
        /// <returns></returns>
        bool Add(string videoId, Discuss discuss);

        /// <summary>
        /// 获取评论数量
        /// </summary>
        /// <param name="videoId"></param>
        /// <returns></returns>
        long Count(string videoId);

        /// <summary>
        /// 获取评论分页列表
        /// </summary>
        /// <param name="videoId"></param>
        /// <param name="pageNumber"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        List<Discuss> QueryDiscusses(string videoId, int pageNumber, int pageSize = 10);
    }
}
